package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.Map;

public interface PaymentService {
    //保存交易记录
    void savePaymentInfo(OrderInfo orderInfo,String paymentType);

    //获取支付信息
    PaymentInfo getPaymentInfo(String outTradeNo, String paymentType);

    //支付成功
    void paySuccess(String outTradeNo, String paymentType, Map<String, String> paramsMap);

    //更新订单的状态
    void updatePaymentInfo(String outTradeNo, String paymentType,PaymentInfo paymentInfo);

    //关闭本地交易
    void closePayment(Long orderId);
}
